package com.yale.user.dao;

import com.yale.user.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author yale
 */
@Repository
public interface UserDao extends JpaRepository<User, Long> {

    User findByMailAndPassword(String mail,String password);

    User findByMail(String mail);
}
